package com.mapper;

import com.entity.Admin;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AdminMapper {
    void insertAdmin(Admin admin);
    void deleteAdminById(Integer id);
    void updateAdmin(Admin admin);
    Admin selectAdminById(Integer id);
    Admin selectAdminByName(String name);
    List<Admin> selectAdmin();
    List<Admin> selectPageAdmin(@Param("pageNum")Integer pageNum,
                              @Param("pageSize")Integer pageSize);
}
